<%@ page language="java" contentType="text/html; charset=UTF-8" 
pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
 <script type="text/javascript" >  
    function setTextValue(){
    	var ids = '';
    	var count = 0;
    	var temp = '';
    	$('input:checkbox[name="values"]:checked',navTab.getCurrentPanel()).each(function(i, n) {
    		ids = n.value;
    		count += count+1;
    	});
    	 if(count > 1) {
    		alert('只能选择一条！');
    		return ;		
    	}else{
    		temp= ids;
    		document.getElementById('assetid').value =temp;
    		
    	}
    }
</script>
<input style="display:none" type="text" name="id" id="assetid" >
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action=""  method="post" rel="pagerForm" id="pagerFindForm">
		<div class="searchBar">
			<table class="pageFormContent">
				
			</table>
		</div>
	</form>
</div>
<div class="pageContent" style="OVERFLOW: auto; HEIGHT: 159px" layoutH="150">
	
	<div class="panelBar">
			
		<jsp:include page="/common/pagination.jsp" />
	</div>
	<table class="list" width="100%" layoutH="32" id="exportExcelTable">
		<thead>
			<tr>
			<th><nobr>序号</nobr></th>
			<td style="width:30px;">
               <!-- <input id="chkall" type="checkbox" onclick="chkAll();" title="全选或全不选" style="width: 16;
                   height: 16" /> -->
            </td>
			<th export = "true" columnEnName ="equipnumber" columnChName = "资产编码">资产编码</th>
			<th export = "true" columnEnName = "type" id2NameBeanId = "org.hpin.base.dict.dao.SysDictTypeDao" columnChName = "分类" >分类</th>
			<th export = "true" columnEnName = "name" columnChName = "资产名称">资产名称</th>
			<th export = "true" columnEnName = "measure" id2NameBeanId = "org.hpin.base.dict.dao.SysDictTypeDao" columnChName = "计量单位">计量单位</th>
			<th export = "true" columnEnName = "models" columnChName = "型号">型号</th>
			<th export = "true" columnEnName = "department" id2NameBeanId = "org.hpin.base.usermanager.dao.DeptDao" columnChName = "使用部门">使用部门</th>
			<th export = "true" columnEnName = "storageplace" columnChName = "存放地点">存放地点</th>
			<th export = "true" columnEnName = "state" id2NameBeanId = "org.hpin.base.dict.dao.SysDictTypeDao" columnChName = "当前状态">当前状态</th>
		
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${ page.results }" var="assetinfo"  varStatus="status">
				<tr target="sid_user" rel="${assetinfo.id }">
					<th>${status.count }</th>
					<td align="center" style="height:18px;width:30px;">
                      <span class="mybox"><input id="GridView1_ctl02_del" type="checkbox" onclick="setTextValue()" name="values" value="${assetinfo.id }" /></span>
                     
                    </td>
					<th><a href="${ path }/assetinfo/assetinfoAction!browAssetinfo.action?id=${assetinfo.id }"  target="dialog">${assetinfo.equipnumber}</a></th>
					<td align="center">
					<hpin:id2nameDB beanId="org.hpin.base.dict.dao.SysDictTypeDao" id="${assetinfo.type}"/>
					</td> 
					<td align="center">${assetinfo.name}</td> 
					<td align="center">
					<hpin:id2nameDB beanId="org.hpin.base.dict.dao.SysDictTypeDao" id="${assetinfo.measure}"/>
					</td> 
					<td align="center">${assetinfo.models}</td> 
					<td align="center">
					<hpin:id2nameDB beanId="org.hpin.base.usermanager.dao.DeptDao" id="${assetinfo.department}"/></td> 
					<td align="center">${assetinfo.storageplace}</td> 
					<td align="center"><hpin:id2nameDB beanId="org.hpin.base.dict.dao.SysDictTypeDao" id="${assetinfo.state}"/></td> 
				</tr>
			</c:forEach>
		</tbody>
	</table>
	
</div>

